package com.hyving.home.mybatismulti.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class SingleService {



    @Transactional(transactionManager = "dataSourceTransactionManagerPrimary")
    public void insert1(){
        ///
        ///
    }

    @Transactional(transactionManager = "dataSourceTransactionManagerSecond")
    public void insert2(){
        ///
        ///
    }
}
